/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  uid: string | number;
  token: string;
  session: string;
  app: string;
  roles: RoleInfo[];
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  roles: RoleInfo[];
  rid: string | number;
  // 用户id
  uid: string | number;
  // 用户名
  uname: string;
  // 真实名字
  uaccess: string;
  // 头像
  ico: string;
  // wechatid
  wechatid?: string;
  // wechatidapp
  wechatidapp?: string;
  // phone
  phone?: string;
  // email
  email?: string;
}
